<html>
<head>
    <meta name="layout" content="dp"/>
    <title>Simple GSP page</title>
</head>

<body>
<table>
    <thead>
        <tr>

            <g:sortableColumn property="id" title="Id"/>

            <g:sortableColumn property="email" title="Email"/>

            <g:sortableColumn property="firstName" title="First Name"/>

            <g:sortableColumn property="lastName" title="Last Name"/>

        </tr>
    </thead>
    <tbody>
        <g:each in="${memberList}" status="i" var="person">
            <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

                <td><g:link action="show" id="${person.id}">${person.id?.encodeAsHTML()}</g:link></td>

                <td>${person.email?.encodeAsHTML()}</td>

                <td>${person.firstName?.encodeAsHTML()}</td>

                <td>${person.lastName?.encodeAsHTML()}</td>

            </tr>
        </g:each>
    </tbody>
</table>

</body>
</html>